import request from './request.js'

const carSource = {
  // 发布——车源——获取店铺
  // GetStoreDataList(data = {}) {
  //   return request.post('/bussiness/BusReleaseGoods/GetStoreDataList', data)
  // },
  // 发布——车源——默认图5张
  GetCarColourDataList(data = {}) {
    return request.post('/bussiness/BusReleaseGoods/GetCarColourDataList', data)
  },
  // 发布——车源——获取图片素材库
  GetMaterialLibraryDataList(data = {}) {
    return request.post('/bussiness/BusReleaseGoods/GetMaterialLibraryDataList', data)
  },
  // 发布车源
  ReleaseCarSource(data = {}) {
    return request.post('/bussiness/BusReleaseGoods/ReleaseCarSource', data)
  },
  // 编辑车源-渲染数据
  GetUpdateCarSourceDataDataList(data = {}) {
    return request.post('/bussiness/BusGoods/GetUpdateCarSourceDataDataList', data)
  },
  // 编辑车源
  UpdateCarSource(data = {}) {
    return request.post('/bussiness/BusGoods/UpdateCarSource', data)
  },
  //新增金融方案
  AddLoanPlan(data = {}) {
    return request.post('/bussiness/BusLoanPlan/AddLoanPlan', data)
  },
  //编辑金融方案
  UpdateLoanOlan(data = {}) {
    return request.put('/bussiness/BusLoanPlan/UpdateLoanOlan', data)
  },
  //删除金融方案
  DeleteLoanOlan(data = {}) {
    return request.delete('/bussiness/BusLoanPlan/DeleteLoanOlan', data)
  },
  //修改默认金融方案
  DeleteLoanOlanDefault(data = {}) {
    return request.put('/bussiness/BusLoanPlan/DeleteLoanOlanDefault', data)
  },
  //金融方案列表
  GetLoanOlanDataList(data = {}) {
    return request.post('/bussiness/BusLoanPlan/GetLoanOlanDataList', data)
  },
  // 计算月供
  GetCarCalculator(data) {
    return request.get('/client/GoodsCarSource/GetCarCalculator', {
      params: data
    })
  },
  //车源详情
  GetGoodsCarSourceDetailsDataList(data = {}) {
    return request.post('/bussiness/BusGoods/GetGoodsCarSourceDetailsDataList', data)
  },
  //车源列表
  GetCarSourceListDataList(data = {}) {
    return request.post('/bussiness/BusGoods/GetCarSourceListDataList', data)
  },
  //车源-我的车源
  GetMyCarSourceDataDataList(data = {}) {
    return request.post('/bussiness/BusGoods/GetMyCarSourceDataDataList', data)
  },
  //车源-车源管理
  GetMyGoodsListDataList(data = {}) {
    return request.post('/bussiness/BusGoods/GetMyGoodsListDataList', data)
  },
  //车源-车源管理-下架
  UpdateMyCarSourceShelves(data = {}) {
    return request.put('/bussiness/BusGoods/UpdateMyCarSourceShelves', data)
  },
  //车源-车源管理-上架
  UpdateMyCarSourceUpload(data = {}) {
    return request.put('/bussiness/BusGoods/UpdateMyCarSourceUpload', data)
  },
  //发布成功店铺列表
  GetStoreDataList(data = {}) {
    return request.post('/bussiness/BusReleaseGoods/GetStoreDataList', data)
  },

}

export default carSource
